#ifndef DYNAMICXWIDGET_H
#define DYNAMICXWIDGET_H


#include "adaptivewidgets.h"
#include "dynamicxucs.h"
#include "dm/dmstruct.h"

class DynamicXWidget : public ATabWidget
{
    Q_OBJECT
public:
    explicit DynamicXWidget(const double &maxThreshold, QWidget *parent = nullptr);
    int newTab(const DynamicX &type);
public slots:
    void set(const DXVariant &dx);
signals:
    void stateChanged(DXVariant);
private:
    template <typename WidgetType, typename ParamType>
    void updateWidget(const ParamType& param);
private:
    const double m_maxThreshold;
    // ATabWidget *tabWidget;
};

#endif // DYNAMICXWIDGET_H
